﻿using System;
//using System.Collections.Generic;
using Petra.Gis.Geometry;

namespace Petra.Gis.RenderingServices.PlanarBase 
{
  /// <summary>
  /// helper interface, when implemented provides functionality
  /// that can convert elements within IEnumerable collection into
  /// GeometryBase
  /// </summary>
  public interface IConverter
  {


    /// <summary>
    /// if geometry is not stored directly in IEnumerable but is saved is structure for example
    /// this function will return geometry data by given geometry filed name
    /// </summary>
    /// <param name="dataItem"></param>
    /// <param name="idOfGeometryField"></param>
    /// <returns></returns>
    GeometryBase getGeometry(object dataItem, string idOfGeometryField);
  }
}
